package lib.bone.access.module.dict.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

/**
 * @author: kindear
 */
@Data
@ApiModel(value = "知识产权词典新增DTO")
public class NepuPropertyDictAddDTO {
    @NotBlank(message = "分类编码不可为空")
    @ApiModelProperty("分类编码")
    String code;
    // property
    @NotBlank(message = "知识产权类型不可为空")
    @ApiModelProperty(value = "知识产权类型",notes = "国外发明专利 etc.")
    String propertyType;

    @NotBlank(message = "知识产权编号不可为空")
    @ApiModelProperty(value = "知识产权编号")
    String proholder;

    @NotBlank(message = "知识产权级别不可为空")
    @ApiModelProperty(value = "知识产权级别",notes = "A.B.C等")
    String propertyLevel;

    @DecimalMin(value = "0",message = "最小工作量大于0")
    @ApiModelProperty(value = "工作量Min",notes = "获奖对应的最小工作量")
    Double workloadMin;
    @DecimalMin(value = "0",message = "最大工作量大于0")
    @ApiModelProperty(value = "工作量Max",notes = "获奖对应的最大工作量")
    Double workloadMax;

    @ApiModelProperty(value = "知识产权词典备注")
    String remark;
}
